package com.lemner.ke.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.lemner.ke.R;
import com.vansuita.materialabout.builder.AboutBuilder;
import com.vansuita.materialabout.views.AboutView;

public class AboutActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        LinearLayout linearLayout=findViewById(R.id.about);
        AboutView view = AboutBuilder.with(this)
                .setPhoto(R.mipmap.ic_ssf_round)
                .setCover(R.mipmap.profile_cover)
                .setName("客服培训")
                .setSubTitle("专注于培训")
                .setBrief("客服娘是面向客服领域的垂直性知识共享平台，为客服领域人才提供社交化的行业知识共享圈")
                .setAppIcon(R.mipmap.ic_ssf)
                .setAppName(R.string.app_name)
                .addGooglePlayStoreLink("8002078663318221363")
                .addGitHubLink("user")
                .addFacebookLink("user")
                .addFiveStarsAction()
                .setVersionNameAsAppSubTitle()
                .addShareAction(R.string.app_name)
                .setWrapScrollView(true)
                .setLinksAnimated(true)
                .setShowAsCard(true)
                .build();
        linearLayout.addView(view);
    }
}
